package com.sun.stockexchangesimulate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;

import lombok.Builder;
import lombok.Data;

/**
 * 存储每日每个时间段的股票价格信息
 * @author sun
 * @TableName stock_price_intraday
 */
@TableName(value ="stock_price_intraday")
@Data
@Builder
public class StockPriceIntraday implements Serializable {
    /**
     * 自增主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 股票代码
     */
    private String stockCode;

    /**
     * 日期
     */
    private LocalDate date;

    /**
     * 时间
     */
    private LocalTime time;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 成交量
     */
    private Long volume;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}